<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name = "viewport" content = "width = device-width, initial-scale = 1.0, maximum-scale = 1.0, user-scalable = 0" />
    <title>天天外链自定义Demo</title>
   
    <link rel="stylesheet" href="https://wailiancn.oss-cn-beijing.aliyuncs.com/assets/js/v1/wailian-1.0.min.css"></link>
    <!-- <script src="https://wailiancn.oss-cn-beijing.aliyuncs.com/assets/js/v1/wailian-1.0-min.js"></script> -->
    <script src="https://wailiancn.oss-cn-beijing.aliyuncs.com/assets/js/v2/jquery-3.5.1-min.js?versionId=CAEQFBiBgIDTy.Pa0hciIDc3NWY0YjVhMTdlYTRmMDliNzRlMGQyMWUxMTg5MjQw"></script>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
    <script src="/js/public/wailian-1.0.js"></script>
</head>
<body>
    <!-- 微信内浏览器加载样式 -->
    <wx-open-launch-weapp id="wechatbtn" username="" path="" style="width: 100%;float: left;display: none;">
        <template>
            <div style="width: 100%;height: 50px;line-height: 50px;text-align: center;background-color: #0F7FFE;color: #FFFFFF;">
                测试微信内打开
            </div>
        </template>
    </wx-open-launch-weapp>

    <!-- 微信外加载样式 -->
    <a id="wailian_web_jump" href="#" style="width: 100%;height: 50px;line-height: 50px;text-align: center;background-color: #0F7FFE;color: #FFFFFF; display: none;float: left;text-decoration: none;">
        测试微信外打开
    </a>

    <script> 
        $(function () {
            // 调用天天外链,点击才跳转微信
            tianTianWaiLian('services',false);
            // 调用天天外链,加载就请求微信
            // tianTianWaiLian('services',true);
        });
    </script>
</body>
</html>